package com.eian.boot.module.system.role.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
@Schema(name = "更新角色请求参数")
public class RoleUpdateRequest {
    @Schema(description = "角色Id")
    @NotNull(message = "角色Id不能为空")
    private Long id;

    @Schema(description = "角色名称")
    @Size(min = 2, max = 50, message = "角色名称长度必须在2-50个字符之间")
    private String name;

    @Schema(description = "角色描述")
    @Size(max = 500, message = "角色描述长度不能超过500个字符")
    private String description;

    @Schema(description = "状态：0-禁用，1-启用")
    @Range(min = 0, max = 1, message = "状态值只能是0或1")
    private Integer status;
}
